cmake_minimum_required(VERSION 2.8)

# find_package(Readline REQUIRED)

add_library(parser STATIC
  Lexer.cpp
  DefaultLexer.cpp
  Parser.cpp
  ASTNode.cpp
  BNFParser.cpp
  TILParser.cpp
)

target_link_libraries(parser base)

if (NOT "${CMAKE_CXX_COMPILER_ID}" STREQUAL "MSVC")
target_link_libraries(parser readline)
endif()
